package com.ourteam.system.domain;

/**
 * Template Name : 枚举对象模板
 * Template Version : 1
 * Template Last Modfiy Date : Tue Oct 31 15:27:11 CST 2017
 * Auto Generate Date : 2018-07-20 12:05:13
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.enums.Enum;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;


public class SystemEventLevelEnum extends Enum {
    private static Map<String, SystemEventLevelEnum> enumValueMap = new HashMap<String, SystemEventLevelEnum>();

    /**
     * 信息
     */
    public static final SystemEventLevelEnum INFO = new SystemEventLevelEnum("INFO",
            "信息");

    /**
     * 错误
     */
    public static final SystemEventLevelEnum ERROR = new SystemEventLevelEnum("ERROR",
            "错误");

    /**
     * 系统错误
     */
    public static final SystemEventLevelEnum FATAL = new SystemEventLevelEnum("FATAL",
            "系统错误");

    /**
     * 调试
     */
    public static final SystemEventLevelEnum DEBUG = new SystemEventLevelEnum("DEBUG",
            "调试");
    private String desc;

    protected SystemEventLevelEnum(String arg0, String aDesc) {
        super(arg0);
        desc = aDesc;
        enumValueMap.put(arg0, this);
    }

    public String getDesc() {
        return desc;
    }

    public static SystemEventLevelEnum getEnum(String arg0) {
        return (SystemEventLevelEnum) enumValueMap.get(arg0);
    }

    public static Collection<SystemEventLevelEnum> getEnumList() {
        return enumValueMap.values();
    }
}
